package com.wxb.apiclientsdk;

import com.wxb.apiclientsdk.client.Client;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties("wxb.client")
@Data
@ComponentScan
public class ClientConfig {

    private String accessKey;

    private String secretKey;

    @Bean
    public Client client(){
        return new Client(accessKey, secretKey);
    }
}
